package com.woniu.clientServer.controller;

import com.woniu.clientServer.pojo.CustomerApplication;
import com.woniu.clientServer.service.CustomerApplicationService;
import com.woniu.common.utils.ResponseData;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/application")
public class ApplicationController {
    @Autowired
    private CustomerApplicationService applicationService;

    @GetMapping("/queryAppByCode/{code}")
    public ResponseData<?> queryAppByCode(@PathVariable("code") String code){
        return applicationService.queryAppByCode(code);
    }
}
